const mongoose = require('mongoose');//引入mongoose
require('./questionsModel');
require('./userModel');
const collectionSchema = new mongoose.Schema({
    questions_id: {
        type: mongoose.SchemaTypes.ObjectId,
        ref:'questionsModel'
    },
    user_id: {
        type: mongoose.SchemaTypes.ObjectId,
        ref:'usersModel'
    }
});

const collectionModel = mongoose.model("collectionModel", collectionSchema, "Collections");
module.exports = {collectionModel}